/**
 * @project_name staff_vehicle
 * @package_name com.ssh.web
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-24
 * @time 下午12:03:49
 */
package com.ssh.web;

import java.sql.Timestamp;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.ser.common.ApplySerI;

/**
 * @author jack
 *
 */
public class ACarResultAction extends ActionSupport {
	/**
	 * TODO
	 */
	private static final long serialVersionUID = 1L;
	private Timestamp applyDate;
	private ApplySerI applySerI;
	private String driverId;
	private String RComments;
	private String reviewerId;
	private String vehicleId;

	/*
	 * (non-Javadoc)
	 *
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		try {
			String staffId = (String) ServletActionContext.getContext()
					.getSession().get("staffId");
			applySerI.viewACarInfo(staffId);
		} catch (Exception e) {
			return "error";
		}
		return "ok";
	}

	/**
	 * @return the applyDate
	 */
	public Timestamp getApplyDate() {
		return applyDate;
	}

	/**
	 * @return the applySerI
	 */
	public ApplySerI getApplySerI() {
		return applySerI;
	}

	/**
	 * @return the driverId
	 */
	public String getDriverId() {
		return driverId;
	}

	/**
	 * @return the rComments
	 */
	public String getRComments() {
		return RComments;
	}

	/**
	 * @return the reviewerId
	 */
	public String getReviewerId() {
		return reviewerId;
	}

	/**
	 * @return the vehicleId
	 */
	public String getVehicleId() {
		return vehicleId;
	}

	/**
	 * @param applyDate
	 *            the applyDate to set
	 */
	public void setApplyDate(Timestamp applyDate) {
		this.applyDate = applyDate;
	}

	/**
	 * @param applySerI
	 *            the applySerI to set
	 */
	public void setApplySerI(ApplySerI applySerI) {
		this.applySerI = applySerI;
	}

	/**
	 * @param driverId
	 *            the driverId to set
	 */
	public void setDriverId(String driverId) {
		this.driverId = driverId;
	}

	/**
	 * @param rComments
	 *            the rComments to set
	 */
	public void setRComments(String rComments) {
		RComments = rComments;
	}

	/**
	 * @param reviewerId
	 *            the reviewerId to set
	 */
	public void setReviewerId(String reviewerId) {
		this.reviewerId = reviewerId;
	}

	/**
	 * @param vehicleId
	 *            the vehicleId to set
	 */
	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}

}
